/**
 * 
 */
package metalink.student;

import java.util.ArrayList;

import model.student.HostelMo;

import com.opensymphony.xwork2.ActionSupport;

import vo.mixed.HostelStudentVo;

/**
 * @author Sony
 *
 */
public class GetHostelDetails extends ActionSupport{
ArrayList<HostelStudentVo> list=new ArrayList<HostelStudentVo>();
public String execute()
{
	HostelMo mo=new HostelMo();
	try {
		list=mo.getHostelDetails();
	} catch (Exception e) {
		addActionError(e.getMessage());
	}
	return SUCCESS;
}

public ArrayList<HostelStudentVo> getList() {
	return list;
}
public void setList(ArrayList<HostelStudentVo> list) {
	this.list = list;
}

}
